package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 sys_comment
 *
 * @author qyb
 * @date 2023-12-26
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long uuid;

    /** 父级消息id */
    @Excel(name = "父级消息id")
    private Long parentId;

    /** 评论者id */
    @Excel(name = "评论者id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 评论书id */
    @Excel(name = "评论书id")
    private Long bookId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论级别（1,一级评论，2二级评论） */
    @Excel(name = "评论级别", readConverterExp = "1=,一级评论，2二级评论")
    private Long level;

    /** (0,未删除，1已删除） */
    @Excel(name = "(0,未删除，1已删除）")
    private Long isDelete;

    public void setUuid(Long uuid)
    {
        this.uuid = uuid;
    }

    public Long getUuid()
    {
        return uuid;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLevel(Long level)
    {
        this.level = level;
    }

    public Long getLevel()
    {
        return level;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uuid", getUuid())
            .append("parentId", getParentId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("bookId", getBookId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("level", getLevel())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
